package net.lab1024.sa.admin.module.business.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.lab1024.sa.admin.module.business.shop.domain.Enity.ShopEntity;
import net.lab1024.sa.admin.module.business.shop.domain.ShopVO;
import net.lab1024.sa.admin.module.business.shop.domain.form.ShopQueryForm;
import net.lab1024.sa.admin.module.system.employee.domain.form.EmployeeQueryForm;
import net.lab1024.sa.admin.module.system.employee.domain.vo.EmployeeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ShopDao extends BaseMapper<ShopEntity> {

    List<ShopVO> queryByPage(Page page, @Param("query") ShopQueryForm queryForm);


    List<ShopEntity> selectByName(String Name);

    ShopEntity selectById(Long id);
    ShopEntity deleteById(Long id);
}
